﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PolePosition.v3.Desktop
{
    public partial class DialogEditBase : UserControl
    {
        public DialogEditBase()
        {
            InitializeComponent();
        }

        [Category("Base"),
         DisplayName("Base Page Title"),
         DefaultValueAttribute("Base Page Title"),
         Editor(typeof(DevComponents.DotNetBar.Design.TextMarkupUIEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string PageTitle
        {
            get { return labelXPageTitle.Text; }
            set { labelXPageTitle.Text = value; }
        }

        [Category("Base"),
        DisplayName("Base Page Image"),
        DefaultValueAttribute("Base Page Image")]
        public Image PageImage
        {
            get { return pictureBoxPageImage.Image; }
            set { pictureBoxPageImage.Image = value; }
        }

        [Category("Base"),
         DisplayName("Base Page Subtitle"),
         DefaultValueAttribute("Base Page Subtitle"),
         Editor(typeof(DevComponents.DotNetBar.Design.TextMarkupUIEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string Subtitle
        {
            get { return labelXSubTitle.Text; }
            set 
            {
                panelSubtitle.Visible = !string.IsNullOrEmpty(value);
                labelXSubTitle.Visible = !string.IsNullOrEmpty(value);
                labelXSubTitle.Text = value; 
            
            }
        }


    }
}
